package com.wechatpay.v3.sdk.data;

import java.io.Serializable;

/**
 * 支付通知数据
 * 有删减
 *
 * @author liuyi <liuy@pvc123.com>
 * @since 2021/8/11
 */
public class WechatNotifyData implements Serializable {

    /** 返回的附加数据 */
    private String attach;
    /** 支付单号 */
    private String out_trade_no;
    /** 交易状态 */
    private String trade_state;
    /** 支付金额 */
    private WechatPayRequestData.Amount amount;

    public String getAttach() {
        return attach;
    }

    public WechatNotifyData setAttach(String attach) {
        this.attach = attach;
        return this;
    }

    public String getOut_trade_no() {
        return out_trade_no;
    }

    public WechatNotifyData setOut_trade_no(String out_trade_no) {
        this.out_trade_no = out_trade_no;
        return this;
    }

    public String getTrade_state() {
        return trade_state;
    }

    public WechatNotifyData setTrade_state(String trade_state) {
        this.trade_state = trade_state;
        return this;
    }

    public WechatPayRequestData.Amount getAmount() {
        return amount;
    }

    public WechatNotifyData setAmount(WechatPayRequestData.Amount amount) {
        this.amount = amount;
        return this;
    }
}
